﻿<%@ Page Title="Wishlist" Language="C#" MasterPageFile="~/ProductMaster.master" AutoEventWireup="true" CodeBehind="MyWishList.aspx.cs" Inherits="ShopOnline.MyWishList" %>

<%@ Register Src="~/Controls/ShopOnline/WishListCtrl.ascx" TagName="WishList" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Common/DataPagerCtrl.ascx" TagName="DataPager" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="category-products">
        <div class="toolbox">
            <div class="right-top">
                <div class="left-bot">
                    <div class="right-bot">
                        <div class="toolbar">
                            <div class="pager">
                                <p class="amount">
                                    <strong><asp:Label ID="lblTotalItems" runat="server"></asp:Label></strong>
                                </p>
                                <div class="limiter">
                                    <label>
                                        Show</label>
                                    <asp:DropDownList ID="ddlItemPerRow" runat="server" OnSelectedIndexChanged="ddlItemPerRow_OnSelectedIndexChanged" AutoPostBack="true">
                                        <asp:ListItem Text="9" Value="9"></asp:ListItem>
                                        <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                        <asp:ListItem Text="30" Value="30"></asp:ListItem>
                                    </asp:DropDownList>
                                    per page
                                </div>
                            </div>
                            <div class="sorter">
                                <p class="view-mode">
                                     <uc:DataPager PageSize="9" ID="dataPager" runat="server" OnPageIndexChanged="dataPager_OnPageIndexChanged" />
                                </p>
                                <div class="sort-by">
                                    <label>
                                        Sort By</label>
                                    <asp:DropDownList ID="ddlSortBy" runat="server" OnSelectedIndexChanged="ddlSortBy_OnSelectedIndexChanged" AutoPostBack="true">
                                        <asp:ListItem Text="Default" Value="ID"></asp:ListItem>
                                        <asp:ListItem Text="Name" Value="ProductName"></asp:ListItem>
                                        <asp:ListItem Text="Price" Value="SalePrice"></asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:LinkButton ID="lnkSortBy" runat="server" ToolTip="Set Descending Direction" OnClick="btnSortDir_OnClick">
                                        <asp:Image ID="imgSortBy" runat="server" ImageUrl="~/images/i_asc_arrow.gif" AlternateText="Set Descending Direction" class="v-middle" />
                                    </asp:LinkButton>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <ul class="products-grid first"  style='background-color:White !important; width:100% !important; padding-top:10px; padding-bottom:10px'>
            <uc:WishList ID="wishList" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" RepeatedColumns="3"
                AllowPaging="true" OnNeedDataSource="wishList_OnNeedDataSource" Width="100%" OnCartChanged="wishList_OnCartChanged" />
            <asp:Label ID="lblNoRecord" runat="server" Text="No item(s) to display." Visible="false"></asp:Label>
        </ul>
        <div class="grid-divider last">
            &nbsp;</div>
        <div class="toolbar-bottom">
            <div class="toolbox">
                <div class="right-top">
                    <div class="left-bot">
                        <div class="right-bot">
                            <div class="toolbar">
                                <div class="pager">
                                    <p class="amount">
                                        <strong><asp:Label ID="lblTotalItemsDown" runat="server"></asp:Label></strong>
                                    </p>
                                    <div class="limiter">
                                        <label>
                                            Show</label>
                                        <asp:DropDownList ID="ddlItemPerRowDown" runat="server" OnSelectedIndexChanged="ddlItemPerRow_OnSelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Text="9" Value="9"></asp:ListItem>
                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                            <asp:ListItem Text="30" Value="30"></asp:ListItem>
                                        </asp:DropDownList>
                                        per page
                                    </div>
                                </div>
                                <div class="sorter">
                                    <p class="view-mode">
                                         <uc:DataPager PageSize="9" ID="dataPagerDown" runat="server" OnPageIndexChanged="dataPager_OnPageIndexChanged" />
                                    </p>
                                    <div class="sort-by">
                                        <label>Sort By</label>
                                        <asp:DropDownList ID="ddlSortByDown" runat="server"  OnSelectedIndexChanged="ddlSortBy_OnSelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Text="Default" Value="ID"></asp:ListItem>
                                            <asp:ListItem Text="Name" Value="ProductName"></asp:ListItem>
                                            <asp:ListItem Text="Price" Value="SalePrice"></asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:LinkButton ID="btnSortDirDown" runat="server" ToolTip="Set Descending Direction" OnClick="btnSortDir_OnClick">
                                            <asp:Image ID="imgSortDirDown" runat="server" ImageUrl="~/images/i_asc_arrow.gif" AlternateText="Set Descending Direction" class="v-middle" />
                                        </asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>
